from common import *



if __name__ == '__main__':
    listener = Listener()
    speaker = Speaker()
    logger.info("Initialization complete.")
    try:
        while True:
            question = listener.hear()
            answer = chat(question)
            speaker.say(answer)
    except KeyboardInterrupt:
        logger.info("Stopped.")
